import request from '@/utils/request'

// 查询出库详情列表
export function listExitDetail(query) {
  return request({
    url: '/storage/exitDetail/list',
    method: 'get',
    params: query
  })
}

// 查询出库详情详细
export function getExitDetail(itemId) {
  return request({
    url: '/storage/exitDetail/' + itemId,
    method: 'get'
  })
}

// 新增出库详情
export function addExitDetail(data) {
  return request({
    url: '/storage/exitDetail',
    method: 'post',
    data: data
  })
}

// 修改出库详情
export function updateExitDetail(data) {
  return request({
    url: '/storage/exitDetail',
    method: 'put',
    data: data
  })
}

// 删除出库详情
export function delExitDetail(itemId) {
  return request({
    url: '/storage/exitDetail/' + itemId,
    method: 'delete'
  })
}
